* lisp/hi-lock.el (hi-lock-revert-buffer-rehighlight): Improve (bug#57534).
authorJuri Linkov <juri@linkov.net>
Thu, 27 Jun 2024 17:05:58 +0000 (20:05 +0300)
committerJuri Linkov <juri@linkov.net>
Thu, 27 Jun 2024 17:05:58 +0000 (20:05 +0300)
commit280c91782afa0c6ae667785b806da58e6be102ae
tree7e9ddff7f834c7ee4fb628d749e9a7b885527ebf
parent339310d020587ac25798f94851834c7044c87be4
* lisp/hi-lock.el (hi-lock-revert-buffer-rehighlight): Improve (bug#57534).

Instead of detecting invalidated overlays, use the same condition
as in 'hi-lock-set-pattern', and always re-highlight overlays,
because even when overlays stays on their original positions,
there is a need to highlight more matches possibly added after revert.
lisp/hi-lock.el